package com.dhecp.project.business.domain;

import java.util.Date;

import com.dhecp.core.domain.BaseBusinessEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 销售合同单 实体类
 * @author DH-lwl
 * @version 2019年12月5日
 */
public class StockBargainIn extends BaseBusinessEntity{

	private static final long serialVersionUID = 1L;
	
	private String trade;	//行业
	private Double fTcBl;	//提成比例
	private Double gPrice;	//成本价
	private String bPID; //客户BPID
    private String vAddress; //客户地址
    private String vMan; //联系人
    private String vFax; //传真
    private String vTel; //电话
    private String vAddressM; 	//联系人地址
    private String vManSh; 	//收货人
    private String vFaxSh; 	//收货人传真
    private String vTelSh; 	//收货人电话
    private String vAddressSh; 	//收货人地址
    private String vXsLx; //销售类型编码
    private String vFkFs; //付款方式编码
    private String vFkBz; //付款备注
    private String vKhHth; //客户合同号
    private String vRaZd; //RA主导
    private String vRaXth; //RA系统号
    private String vRaXs; //RA销售
	@JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date dBjYxq;		//报价有效期
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date dHthq; //合同交货期
    private String vHthq; //合同货期
    private Double fXsFpsl; //销售税率
    private Double fSumje; //金额
    private Double fWsDj; //未税单价
    private Double fWsJe; //未税金额
    private Double fSe;		//税额
    private Double fDxMl;//单项毛利
    private Double fHtzk;//合同折扣
    private Double fHsMj;//含税面价
    private Double fWsMj;//未税面价
    private Double fZbj;//质保金
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date dZbKsRq; //质保开始日期
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date dZbJsRq; //质保结束日期
    
    private Double fPsCb;//评审成本
    private Double fPsJe;//评审金额
    private Double fPsMl;//评审毛利
    private Double fPsMll;//评审毛利率
    private Double fZdPsMll;//整单评审毛利率
    private Double fPsZk;//评审折扣
    private String vPsBz;//评审备注

	private String pBPID;	//分销商BPID
	private String vTjHm;	//特价号码
	private String vTjMc;	//特价名称
    private Double fTjSl;	//特价数量
    private Double fTjSl2;	//特价保存数量
    private Double fHsMjT;	//特价含税面价
    private Double fWsMjT;	//特价未税面价
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date dKsRqT;	//特价开始日期
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date dJsRqT;	//特价结束日期
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date fixedDate;	//fixed val.date
    private String vPpLx; 	//特价匹配类型
    
    private Double fSdSl; //锁定数量（回填字段，不进行插入和更新操作）
    private Double fSdSl2; //锁定保存数量（回填字段，不进行插入和更新操作）
    private Double fSqSl; //申请数量（回填字段，不进行插入和更新操作）
    private Double fSqSl2; //申请保存数量（回填字段，不进行插入和更新操作）
    private Double fCgSl; //采购数量（回填字段，不进行插入和更新操作）
    private Double fRkSl; //入库数量（回填字段，不进行插入和更新操作）
    private Double fKcSl; //库存数量（回填字段，不进行插入和更新操作）
    private Double fCkSl; //出库数量（回填字段，不进行插入和更新操作）
    private Double fKpSl; //开票数量（回填字段，不进行插入和更新操作）
    private Double fKpSl2; //开票保存数量（回填字段，不进行插入和更新操作）
    private Double fDkJe; //到款金额（回填字段，不进行插入和更新操作）
    private Double fDkJe2; //到款保存金额（回填字段，不进行插入和更新操作）
    private Double fThSl; //退货数量（回填字段，不进行插入和更新操作）

    private String sUser;		//商务工号
    private String sDept;		//商务部门路径
    private String sUserName;	//商务员
    private String sDeptName;	//商务部门
    private String vQrZt; 		//商务确认状态
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dQrSj;			//商务确认时间
    private String vSjBh;		//商机编号
    
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date dFhRq;		//供应商发货日期
    
    //虚拟字段
    private String vXsLxName; //销售类型
    private String vFkFsName; //付款方式
    private Double fDkBl;	//到款比例
    private Double fWdkJe;//未到款金额
    private Double fKdhSl;//可订货(锁定)数量
    private Double fKdhJe;//可订货(锁定)金额    
    private Double fWkpSl;//未开票数量
    private Double fWkpJe;//未开票金额
    
	public Double getgPrice() {
		if (gPrice == null) {
			return 0.0;
		}
		return gPrice;
	}
	public void setgPrice(Double gPrice) {
		this.gPrice = gPrice;
	}
	public String getbPID() {
		return bPID;
	}
	public void setbPID(String bPID) {
		this.bPID = bPID;
	}
	public String getvAddress() {
		return vAddress;
	}
	public void setvAddress(String vAddress) {
		this.vAddress = vAddress;
	}
	public String getvMan() {
		return vMan;
	}
	public void setvMan(String vMan) {
		this.vMan = vMan;
	}
	public String getvFax() {
		return vFax;
	}
	public void setvFax(String vFax) {
		this.vFax = vFax;
	}
	public String getvTel() {
		return vTel;
	}
	public void setvTel(String vTel) {
		this.vTel = vTel;
	}
	public String getvAddressM() {
		return vAddressM;
	}
	public void setvAddressM(String vAddressM) {
		this.vAddressM = vAddressM;
	}
	public String getvManSh() {
		return vManSh;
	}
	public void setvManSh(String vManSh) {
		this.vManSh = vManSh;
	}
	public String getvFaxSh() {
		return vFaxSh;
	}
	public void setvFaxSh(String vFaxSh) {
		this.vFaxSh = vFaxSh;
	}
	public String getvTelSh() {
		return vTelSh;
	}
	public void setvTelSh(String vTelSh) {
		this.vTelSh = vTelSh;
	}
	public String getvAddressSh() {
		return vAddressSh;
	}
	public void setvAddressSh(String vAddressSh) {
		this.vAddressSh = vAddressSh;
	}
	public String getvXsLx() {
		return vXsLx;
	}
	public void setvXsLx(String vXsLx) {
		this.vXsLx = vXsLx;
	}
	public String getvFkFs() {
		return vFkFs;
	}
	public void setvFkFs(String vFkFs) {
		this.vFkFs = vFkFs;
	}
	public String getvFkBz() {
		return vFkBz;
	}
	public void setvFkBz(String vFkBz) {
		this.vFkBz = vFkBz;
	}
	public String getvKhHth() {
		return vKhHth;
	}
	public void setvKhHth(String vKhHth) {
		this.vKhHth = vKhHth;
	}
	public String getvRaZd() {
		return vRaZd;
	}
	public void setvRaZd(String vRaZd) {
		this.vRaZd = vRaZd;
	}
	public String getvRaXth() {
		return vRaXth;
	}
	public void setvRaXth(String vRaXth) {
		this.vRaXth = vRaXth;
	}
	public String getvRaXs() {
		return vRaXs;
	}
	public void setvRaXs(String vRaXs) {
		this.vRaXs = vRaXs;
	}
	public Date getdBjYxq() {
		return dBjYxq;
	}
	public void setdBjYxq(Date dBjYxq) {
		this.dBjYxq = dBjYxq;
	}
	public Date getdHthq() {
		return dHthq;
	}
	public void setdHthq(Date dHthq) {
		this.dHthq = dHthq;
	}
	public String getvHthq() {
		return vHthq;
	}
	public void setvHthq(String vHthq) {
		this.vHthq = vHthq;
	}
	public Double getfXsFpsl() {
		if (fXsFpsl == null) {
			return 0.0;
		}
		return fXsFpsl;
	}
	public void setfXsFpsl(Double fXsFpsl) {
		this.fXsFpsl = fXsFpsl;
	}
	public Double getfSumje() {
		if (fSumje == null) {
			return 0.0;
		}
		return fSumje;
	}
	public void setfSumje(Double fSumje) {
		this.fSumje = fSumje;
	}
	public Double getfWsDj() {
		if (fWsDj == null) {
			return 0.0;
		}
		return fWsDj;
	}
	public void setfWsDj(Double fWsDj) {
		this.fWsDj = fWsDj;
	}
	public Double getfWsJe() {
		if (fWsJe == null) {
			return 0.0;
		}
		return fWsJe;
	}
	public void setfWsJe(Double fWsJe) {
		this.fWsJe = fWsJe;
	}
	public Double getfSe() {
		if (fSe == null) {
			return 0.0;
		}
		return fSe;
	}
	public void setfSe(Double fSe) {
		this.fSe = fSe;
	}
	public Double getfDxMl() {
		if (fDxMl == null) {
			return 0.0;
		}
		return fDxMl;
	}
	public void setfDxMl(Double fDxMl) {
		this.fDxMl = fDxMl;
	}
	public Double getfHtzk() {
		if (fHtzk == null) {
			return 0.0;
		}
		return fHtzk;
	}
	public void setfHtzk(Double fHtzk) {
		this.fHtzk = fHtzk;
	}
	public Double getfHsMj() {
		if (fHsMj == null) {
			return 0.0;
		}
		return fHsMj;
	}
	public void setfHsMj(Double fHsMj) {
		this.fHsMj = fHsMj;
	}
	public Double getfWsMj() {
		if (fWsMj == null) {
			return 0.0;
		}
		return fWsMj;
	}
	public void setfWsMj(Double fWsMj) {
		this.fWsMj = fWsMj;
	}
	public Double getfSdSl() {
		if (fSdSl == null) {
			return 0.0;
		}
		return fSdSl;
	}
	public void setfSdSl(Double fSdSl) {
		this.fSdSl = fSdSl;
	}
	public Double getfSdSl2() {
		if (fSdSl2 == null) {
			return 0.0;
		}
		return fSdSl2;
	}
	public void setfSdSl2(Double fSdSl2) {
		this.fSdSl2 = fSdSl2;
	}
	public Double getfSqSl() {
		if (fSqSl == null) {
			return 0.0;
		}
		return fSqSl;
	}
	public void setfSqSl(Double fSqSl) {
		this.fSqSl = fSqSl;
	}
	public Double getfSqSl2() {
		if (fSqSl2 == null) {
			return 0.0;
		}
		return fSqSl2;
	}
	public void setfSqSl2(Double fSqSl2) {
		this.fSqSl2 = fSqSl2;
	}
	public Double getfCgSl() {
		if (fCgSl == null) {
			return 0.0;
		}
		return fCgSl;
	}
	public void setfCgSl(Double fCgSl) {
		this.fCgSl = fCgSl;
	}
	public Double getfRkSl() {
		if (fRkSl == null) {
			return 0.0;
		}
		return fRkSl;
	}
	public void setfRkSl(Double fRkSl) {
		this.fRkSl = fRkSl;
	}
	public Double getfKcSl() {
		if (fKcSl == null) {
			return 0.0;
		}
		return fKcSl;
	}
	public void setfKcSl(Double fKcSl) {
		this.fKcSl = fKcSl;
	}
	public Double getfCkSl() {
		if (fCkSl == null) {
			return 0.0;
		}
		return fCkSl;
	}
	public void setfCkSl(Double fCkSl) {
		this.fCkSl = fCkSl;
	}
	public Double getfKpSl() {
		if (fKpSl == null) {
			return 0.0;
		}
		return fKpSl;
	}
	public void setfKpSl(Double fKpSl) {
		this.fKpSl = fKpSl;
	}
	public Double getfKpSl2() {
		if (fKpSl2 == null) {
			return 0.0;
		}
		return fKpSl2;
	}
	public void setfKpSl2(Double fKpSl2) {
		this.fKpSl2 = fKpSl2;
	}
	public Double getfDkJe() {
		if (fDkJe == null) {
			return 0.0;
		}
		return fDkJe;
	}
	public void setfDkJe(Double fDkJe) {
		this.fDkJe = fDkJe;
	}
	public Double getfDkJe2() {
		if (fDkJe2 == null) {
			return 0.0;
		}
		return fDkJe2;
	}
	public void setfDkJe2(Double fDkJe2) {
		this.fDkJe2 = fDkJe2;
	}
	public Double getfThSl() {
		if (fThSl == null) {
			return 0.0;
		}
		return fThSl;
	}
	public void setfThSl(Double fThSl) {
		this.fThSl = fThSl;
	}
	public String getsUser() {
		return sUser;
	}
	public void setsUser(String sUser) {
		this.sUser = sUser;
	}
	public String getsDept() {
		return sDept;
	}
	public void setsDept(String sDept) {
		this.sDept = sDept;
	}
	public String getsUserName() {
		return sUserName;
	}
	public void setsUserName(String sUserName) {
		this.sUserName = sUserName;
	}
	public String getsDeptName() {
		return sDeptName;
	}
	public void setsDeptName(String sDeptName) {
		this.sDeptName = sDeptName;
	}
	public String getvQrZt() {
		return vQrZt;
	}
	public void setvQrZt(String vQrZt) {
		this.vQrZt = vQrZt;
	}
	public Date getdQrSj() {
		return dQrSj;
	}
	public void setdQrSj(Date dQrSj) {
		this.dQrSj = dQrSj;
	}
	public String getvSjBh() {
		return vSjBh;
	}
	public void setvSjBh(String vSjBh) {
		this.vSjBh = vSjBh;
	}
	public String getvXsLxName() {
		return vXsLxName;
	}
	public void setvXsLxName(String vXsLxName) {
		this.vXsLxName = vXsLxName;
	}
	public String getvFkFsName() {
		return vFkFsName;
	}
	public void setvFkFsName(String vFkFsName) {
		this.vFkFsName = vFkFsName;
	}
	public Double getfDkBl() {
		if (fDkBl == null) {
			return 0.0;
		}
		return fDkBl;
	}
	public void setfDkBl(Double fDkBl) {
		this.fDkBl = fDkBl;
	}
	public Double getfWdkJe() {
		if (fWdkJe == null) {
			return 0.0;
		}
		return fWdkJe;
	}
	public void setfWdkJe(Double fWdkJe) {
		this.fWdkJe = fWdkJe;
	}
	public Double getfKdhSl() {
		if (fKdhSl == null) {
			return 0.0;
		}
		return fKdhSl;
	}
	public void setfKdhSl(Double fKdhSl) {
		this.fKdhSl = fKdhSl;
	}
	public Double getfKdhJe() {
		if (fKdhJe == null) {
			return 0.0;
		}
		return fKdhJe;
	}
	public void setfKdhJe(Double fKdhJe) {
		this.fKdhJe = fKdhJe;
	}
	public Double getfWkpSl() {
		if (fWkpSl == null) {
			return 0.0;
		}
		return fWkpSl;
	}
	public void setfWkpSl(Double fWkpSl) {
		this.fWkpSl = fWkpSl;
	}
	public Double getfWkpJe() {
		if (fWkpJe == null) {
			return 0.0;
		}
		return fWkpJe;
	}
	public void setfWkpJe(Double fWkpJe) {
		this.fWkpJe = fWkpJe;
	}
	public Double getfZbj() {
		return fZbj;
	}
	public void setfZbj(Double fZbj) {
		this.fZbj = fZbj;
	}
	public Date getdZbKsRq() {
		return dZbKsRq;
	}
	public void setdZbKsRq(Date dZbKsRq) {
		this.dZbKsRq = dZbKsRq;
	}
	public Date getdZbJsRq() {
		return dZbJsRq;
	}
	public void setdZbJsRq(Date dZbJsRq) {
		this.dZbJsRq = dZbJsRq;
	}
	public Double getfPsCb() {
		if (fPsCb == null) {
			return 0.0;
		}
		return fPsCb;
	}
	public void setfPsCb(Double fPsCb) {
		this.fPsCb = fPsCb;
	}
	public Double getfPsJe() {
		if (fPsJe == null) {
			return 0.0;
		}
		return fPsJe;
	}
	public void setfPsJe(Double fPsJe) {
		this.fPsJe = fPsJe;
	}
	public Double getfPsMl() {
		if (fPsMl == null) {
			return 0.0;
		}
		return fPsMl;
	}
	public void setfPsMl(Double fPsMl) {
		this.fPsMl = fPsMl;
	}
	public Double getfPsMll() {
		if (fPsMll == null) {
			return 0.0;
		}
		return fPsMll;
	}
	public void setfPsMll(Double fPsMll) {
		this.fPsMll = fPsMll;
	}
	public Double getfZdPsMll() {
		if (fZdPsMll == null) {
			return 0.0;
		}
		return fZdPsMll;
	}
	public void setfZdPsMll(Double fZdPsMll) {
		this.fZdPsMll = fZdPsMll;
	}
	public Double getfPsZk() {
		if (fPsZk == null) {
			return 0.0;
		}
		return fPsZk;
	}
	public void setfPsZk(Double fPsZk) {
		this.fPsZk = fPsZk;
	}
	public String getvPsBz() {
		return vPsBz;
	}
	public void setvPsBz(String vPsBz) {
		this.vPsBz = vPsBz;
	}
	public String getpBPID() {
		return pBPID;
	}
	public void setpBPID(String pBPID) {
		this.pBPID = pBPID;
	}
	public String getvTjHm() {
		return vTjHm;
	}
	public void setvTjHm(String vTjHm) {
		this.vTjHm = vTjHm;
	}
	public String getvTjMc() {
		return vTjMc;
	}
	public void setvTjMc(String vTjMc) {
		this.vTjMc = vTjMc;
	}
	public Double getfTjSl() {
		if (fTjSl == null){
			return 0.0;
		}
		return fTjSl;
	}
	public void setfTjSl(Double fTjSl) {
		this.fTjSl = fTjSl;
	}
	public Double getfTjSl2() {
		if (fTjSl2 == null){
			return 0.0;
		}
		return fTjSl2;
	}
	public void setfTjSl2(Double fTjSl2) {
		this.fTjSl2 = fTjSl2;
	}
	public Double getfHsMjT() {
		if (fHsMjT == null){
			return 0.0;
		}
		return fHsMjT;
	}
	public void setfHsMjT(Double fHsMjT) {
		this.fHsMjT = fHsMjT;
	}
	public Double getfWsMjT() {
		if (fWsMjT == null){
			return 0.0;
		}
		return fWsMjT;
	}
	public void setfWsMjT(Double fWsMjT) {
		this.fWsMjT = fWsMjT;
	}
	public Date getdKsRqT() {
		return dKsRqT;
	}
	public void setdKsRqT(Date dKsRqT) {
		this.dKsRqT = dKsRqT;
	}
	public Date getdJsRqT() {
		return dJsRqT;
	}
	public void setdJsRqT(Date dJsRqT) {
		this.dJsRqT = dJsRqT;
	}
	public Date getFixedDate() {
		return fixedDate;
	}
	public void setFixedDate(Date fixedDate) {
		this.fixedDate = fixedDate;
	}
	public String getvPpLx() {
		return vPpLx;
	}
	public void setvPpLx(String vPpLx) {
		this.vPpLx = vPpLx;
	}
	public String getTrade() {
		return trade;
	}
	public void setTrade(String trade) {
		this.trade = trade;
	}
	public Double getfTcBl() {
		if (fTcBl == null) {
			return 0.0;
		}
		return fTcBl;
	}
	public void setfTcBl(Double fTcBl) {
		this.fTcBl = fTcBl;
	}
	public Date getdFhRq() {
		return dFhRq;
	}
	public void setdFhRq(Date dFhRq) {
		this.dFhRq = dFhRq;
	}
	
	
}
